<?php
declare(strict_types=1);

use Phinx\Migration\AbstractMigration;

final class AddIsAbolitionInReviewRequestNode extends AbstractMigration
{
    public function up()
    {
        $this->table('review_request_node')
            ->addColumn('is_abolition', 'enum', ['values' => 'yes,no', 'default' => 'no', 'comment' => '是否废除'])
            ->save();
    }

    public function down()
    {
        $this->table('review_request_node')->removeColumn('is_abolition')->save();
    }
}
